<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String name = request.getParameter("name");
	if(name == null) name = "";
	
	String errorColor = "color: red;";
	String nameErr = "";
	String passErr = "";
	
	String error = request.getParameter("error");
	if(error != null) {
		if(error.equals("combination")) { nameErr = errorColor; passErr = errorColor; }
		else if(error.equals("password")) passErr = errorColor;
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<table class="form">
	<tr><td class="label" style="<%=nameErr%>">Name:</td>				<td class="input"><input type="text" id="name" value="<%=name%>" onchange="doLogin()"/></td></tr>
	<tr><td class="label" style="<%=passErr%>">Password:</td>			<td class="input"><input type="password" id="password" onchange="doLogin()"/></td></tr>
	<tr><td class="label">&nbsp;</td>				<td class="submit"><input type="button" class="button" id="button" value="Log in" onclick="doLogin()"/></td></tr>
	<tr><td class="label">&nbsp;</td>				<td class="input"><input type="button" value="Registreren" onclick="doLoad('register','content')"/></td></tr>
</table>